package com.kaka.bus.engine.home.info.more;

import com.kaka.bus.bean.HttpWrapper;
import com.kaka.bus.di.DataManager;
import com.kaka.bus.manager.Result;
import com.kaka.bus.manager.T;
import com.kaka.bus.mvp.RxPresenter;
import com.kaka.bus.util.U;

import javax.inject.Inject;

/**
 * Created by zhangqi on 2017/4/18.
 */

public class MorePresenter extends RxPresenter<MoreContract.View> implements MoreContract.Presenter {

    @Inject
    public MorePresenter(DataManager dataManager) {
        super(dataManager);
    }

    @Override
    public void unregisterPush(String userId) {
        mDataManager
                .getApi()
                .unPushId(userId, U.Sign(userId))
                .compose(T.D())
                .subscribeWith(new Result<HttpWrapper<String>>() {
                    @Override
                    protected void onSuccess(HttpWrapper<String> stringHttpWrapper) {

                    }
                });

    }
}
